import Vue from "vue";
import Vuex from "vuex";
import user from "./user";
import book from "./book";
import chat from "./chat";
import sale from './sale'
import address from './address'
import register from './register'
import search from './search'
import classify from './classify'
import bookcase from './bookcase'
import favor from './favor'
import cart from './cart'
import history from './history'
import order from './order'
import focusandfans from './focusandfans'
Vue.use(Vuex);

export default new Vuex.Store({
  modules: {
    user,
    book,
    chat,
    sale,
    address,
    register,
    search,
    classify,
    bookcase,
    favor,
    cart,
    history,
    focusandfans,
    order
  },
});
